# -*- coding: UTF-8 -*-
from django.core.exceptions import ValidationError
from django import forms
import pdb
import re
import json
import time
import datetime


class Test1Form(forms.Form):
    pass


class GenerateInviteCodeForm(forms.Form):
    pass
    # inviteCode = forms.CharField(max_length=256)


class SignupForm(forms.Form):
    inviteCode = forms.CharField(max_length=256)
    phone = forms.CharField(max_length=50)
    password = forms.CharField(max_length=50)


class LoginNoWXForm(forms.Form):
    username = forms.CharField(max_length=50)  # 用户名
    userpwd = forms.CharField(max_length=50)   # 登录密码


class LoginForm(forms.Form):
    code = forms.CharField(max_length=256)


class LogoutForm(forms.Form):
    token = forms.CharField(max_length=20)

class ChangePasswordForm(forms.Form):
    token = forms.CharField(max_length=256)
    oldPassword = forms.CharField(max_length=50)
    newPassword = forms.CharField(max_length=50)

class UpdatezsdyForm(forms.Form):
    token = forms.CharField(max_length=20)
    name = forms.CharField(max_length=20)
    classNum = forms.CharField(max_length=20)
    stuNum = forms.CharField(max_length=20)
    phone = forms.CharField(max_length=20)
    branch = forms.CharField(max_length=20)
    userType = forms.CharField(max_length=20)

class UpdateOtherForm(forms.Form):
    token = forms.CharField(max_length=20)
    name = forms.CharField(max_length=20)
    classNum = forms.CharField(max_length=20)
    stuNum = forms.CharField(max_length=20)
    phone = forms.CharField(max_length=20)
    branch = forms.CharField(max_length=20)
    userType = forms.CharField(max_length=20)
    devPeo1 = forms.CharField(max_length=20)
    devPeo2 = forms.CharField(max_length=20)



class GetDYForm(forms.Form):
    token = forms.CharField(max_length=20)
    branch = forms.CharField(max_length=20)


class GetAliTokenForm(forms.Form):
    token = forms.CharField(max_length=100)



class GetUserInfoForm(forms.Form):
    token = forms.CharField(max_length=100)
